package com.hopes.bizz.risk.hid.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lyb
 * @version 1.0
 * @date 2024/2/22 10:02
 */

@Data
public class RiskHidTrendStatistics {

    private List<String> companyList = new ArrayList<>();

    private List<String> dateList = new ArrayList<>();

    private List<RiskHidStatistics> riskHidStatistics = new ArrayList<>();


    public void addCompany(String orgName) {
        this.companyList.add(orgName);
    }

    public void addDate(String date) {
        this.dateList.add(date);
    }

    public void addRiskHidStatistics(String name, List<Integer> data) {
        RiskHidStatistics statistics = new RiskHidStatistics();
        statistics.setName(name);
        statistics.setData(data);
        this.riskHidStatistics.add(statistics);
    }
}
